/*
package com.liaoban.app.ui.common;

import android.support.v4.app.FragmentManager;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.liaoban.app.R;
import com.liaoban.app.ui.base.BaseDialogFragment;
import com.liaoban.app.util.CommonUtils;

import butterknife.BindView;
import butterknife.OnClick;

*/
/**
 * 发送礼物话框
 * Created by ybc on 2017/9/20.
 *//*


public class SendGiftDialogFragment extends BaseDialogFragment {

    public static SendGiftDialogFragment show(FragmentManager fm,
                                              int resId, String name,
                                              View.OnClickListener onOkClickListener,
                                              View.OnClickListener onCancelClickListener) {
        SendGiftDialogFragment dlg = new SendGiftDialogFragment();
        dlg.setOnOkClickListener(onOkClickListener);
        dlg.setResId(resId);
        dlg.setName(name);
        dlg.setOnCancelClickListener(onCancelClickListener);
        dlg.show(fm, "confirm");
        return dlg;
    }

    @BindView(R.id.tv_msg)
    TextView tv;
    @BindView(R.id.tv_confirm)
    TextView tvConfirm;
    @BindView(R.id.iv_icon)
    ImageView ivIcon;

    private CharSequence mOk;
    private int mResId;
    private String mName;
    private View.OnClickListener mOnOkClickListener;
    private View.OnClickListener mOnCancelClickListener;

    @Override
    protected int getLayoutResID() {
        return R.layout.dialog_send_gift;
    }

    @Override
    protected void initView(View contentView) {
        CommonUtils.modifyColor(tv, "你确定赠送"+mName+"吗？", mName, getResources().getColor(R.color.btn_yellow));
        ivIcon.setImageResource(mResId);
        if (!TextUtils.isEmpty(mOk)) {
            tvConfirm.setText(mOk);
        }
    }

    public void setOk(CharSequence cs) {
        mOk = cs;
    }

    public void setResId(int resId) {
        mResId = resId;
    }

    public void setName(String name) {
        mName = name;
    }

    public void setOnOkClickListener(View.OnClickListener onOkClickListener) {
        this.mOnOkClickListener = onOkClickListener;
    }

    public void setOnCancelClickListener(View.OnClickListener onCancelClickListener) {
        this.mOnCancelClickListener = onCancelClickListener;
    }

    @OnClick(R.id.tv_confirm)
    void confirm() {
        if (mOnOkClickListener != null) {
            mOnOkClickListener.onClick(null);
        }
        dismiss();
    }

    @OnClick(R.id.tv_cancel)
    void cancel() {
        if (mOnCancelClickListener != null) {
            mOnCancelClickListener.onClick(null);
        }
        dismiss();
    }
}
*/
